home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ May 89 / U0064-Enough temp space ?-May89 < prev    next >
Encoding:
Text File  |  1989-06-26  |  2.8 KB  |  61 lines  |  [TEXT/GEOL]

  1. Item    6718790                         29-May-89        11:53
  2.  
  3. From:   A.DEVSUPPT                      Austria - Developer Support
  4.  
  5. To:     MACAPP.TECH$                    MACAPP Tech
  6.  
  7. Sub:    Enough temp space ?
  8.  
  9. I am using a MacIIx with 4MB of RAM and Multifinder.
  10. Recently I compiled a MacApp Application with MacApp 2.0b5 and MPW pascal 3.0.
  11. After starting the application, it worked for some minutes and did the things I
  12. want it to do. (Mainly creating objects - about 500). But then it crashed with
  13. the Error -108.
  14. The memory information at the debug window showed the following status
  15. information:
  16. Current total stack = 4240           Maximum stack used = 4272
  17. Current procedure stack = 524           Available stack = 24584
  18. Reserves: code = 217430 (low: 778)     low space = 4096 (gone)    temporary
  19. Current temp space: locked = 175162, unlocked = 35982, total = 211144
  20. Needed reserve handle size = 6286
  21. Max resource usage = 207290
  22. (permanent) FreeMem = 667008            Free master pointers = 203
  23. (permanent) MaxMem = 120
  24. Total # segments = 28;  loaded segments (* = resident segment):
  25.    1* Main              2* GDebug            3* GInspect
  26.    4* GMain             5* GFields           8* GRes
  27.    9  GNonRes          20  GError           21* BBRes
  28.   22* %_SelProcs       23* %_MethTables     26  ARes
  29. Total loaded code = 175162
  30. Current temp space: locked = 175162, unlocked = 35982, total = 211144
  31.  
  32. So I decided to give more temporary space to the application. I added 800kB
  33. with the mem! Resource to the application.
  34. Now the application could create all the requested segments. But after this it
  35. stopped with the message: Memory space is low..., regardless of the amount of
  36. memory I gave to the temp and perm memory.
  37. The debugger showed the following information:
  38. Current total stack = 2082           Maximum stack used = 4272
  39. Current procedure stack = 524           Available stack = 24584
  40. Reserves: code = 217438 (OK)     low space = 823296 (gone)    temporary
  41. Current temp space: locked = 149854, unlocked = 60618, total = 210472
  42. Needed reserve handle size = 6966
  43. Max resource usage = 207298
  44. (permanent) FreeMem = 858756            Free master pointers = 171
  45. (permanent) MaxMem = 806272
  46. Total # segments = 28;  loaded segments (* = resident segment):
  47.    1* Main              2* GDebug            3* GInspect
  48.    4* GMain             5* GFields           8* GRes
  49.   21* BBRes            22* %_SelProcs       23* %_MethTables
  50. Total loaded code = 149854
  51. Current temp space: locked = 149854, unlocked = 60618, total = 210472
  52. ≥G
  53. SysErr ID = 25  Out of memory
  54.  
  55. I am sure that I DON'T need THIS amount. Can anyoune tell me what's that all
  56. about? Am I doing anything wrong with the allocation (I am using New for
  57. objects and NewPermHandle for other the stuff)? HELP!
  58.  
  59. Helmut Seifert, new with MacApp.
  60.  
  61.